package com.haiyou.mini.programs.service;


import com.haiyou.mini.programs.model.PayInfo;
import com.haiyou.mini.programs.model.vo.RefundVO;

import java.util.Map;

/**
 * 小程序支付服务
 */
public interface WxMiniPayService {

    /**
     * 统一下单
     *
     * @param payInfo
     */
    Map<String, String> doUnifiedOrder(PayInfo payInfo);

    /**
     * 扫码支付
     *
     * @param payInfo
     * @return
     */
    String scanOrder(PayInfo payInfo);

    /**
     * 退款
     *
     * @param refundVO
     */
    Map<String, String> refund(RefundVO refundVO);

}
